#!/usr/etc/env python
# _*_ coding:utf-8 _*_
'''
    TODO
'''
from flask import Blueprint, render_template, g
from apps import app

index = Blueprint('index',__name__)
@app.route('/')
def show_entries():
    cur = g.db.execute('select title , text  from entries order by id desc')
    entries = [dict(title=row[0],text=row[1]) for row in cur.fetchall()]
    return render_template('show_entries.html',entries=entries)

